package com.houmeiyuan.huiguniang.modles.dao;

import com.houmeiyuan.huiguniang.modles.domain.OrderItem;
import com.houmeiyuan.huiguniang.modles.domain.ShopCar;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Repository
@Transactional
@Mapper
public interface OrderItemDao {
    List<ShopCar> searchByOrderNumber(@Param("orderId") Integer orderId);
    Integer addProducts(List<OrderItem> list);
}
